package GUINew;

import java.awt.BorderLayout;
import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.SwingConstants;
import java.awt.Toolkit;
import java.awt.GridLayout;
import javax.swing.border.TitledBorder;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import javax.swing.UIManager;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JTabbedPane;
import javax.swing.border.EtchedBorder;
import javax.swing.border.BevelBorder;

public class ControlsSettingsDialog extends JDialog
{
   private JTextField vorwTxtField;
   private JTextField kamObenTxt;
   private JTextField kamUntenTxt;
   private JTextField kamLinksTxt;
   private JTextField kamRechtsTxt;
   private JTextField rueckTxtField;
   private JTextField linksTxtField;
   private JTextField rechtsTxtField;
   private JTextField aufTxtField;
   private JTextField abTxtField;
   private JButton okButton;
   private JButton cancelButton;
   private JTextField textField;


   /**
    * Create the dialog.
    */
   public ControlsSettingsDialog()
   {
      setIconImage(Toolkit.getDefaultToolkit().getImage(ControlsSettingsDialog.class.getResource("/icons/yellow_submarine.png")));
      setTitle("Steuerung");
      setBounds(100, 100, 370, 271);
      getContentPane().setLayout(new BorderLayout());
      {
         JPanel buttonPane = new JPanel();
         buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
         getContentPane().add(buttonPane, BorderLayout.SOUTH);
         {
            okButton = new JButton("OK");
            okButton.setActionCommand("OK");
            buttonPane.add(okButton);
            getRootPane().setDefaultButton(okButton);
         }
         {
            cancelButton = new JButton("Cancel");
            cancelButton.setActionCommand("Cancel");
            buttonPane.add(cancelButton);
            
         }
      }
      {
         JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
         getContentPane().add(tabbedPane, BorderLayout.NORTH);
         {
            JPanel bewegungPanel = new JPanel();
            bewegungPanel.setBorder(null);
            tabbedPane.addTab("Richtung", null, bewegungPanel, null);
            GridBagLayout gbl_bewegungPanel = new GridBagLayout();
            gbl_bewegungPanel.columnWidths = new int[]{0, 0, 0};
            gbl_bewegungPanel.rowHeights = new int[]{0, 0, 0, 0, 0, 0, 0};
            gbl_bewegungPanel.columnWeights = new double[]{1.0, 1.0, Double.MIN_VALUE};
            gbl_bewegungPanel.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
            bewegungPanel.setLayout(gbl_bewegungPanel);
            {
               JLabel lblNewLabel = new JLabel("Vorw\u00E4erts");
               GridBagConstraints gbc_lblNewLabel = new GridBagConstraints();
               gbc_lblNewLabel.anchor = GridBagConstraints.EAST;
               gbc_lblNewLabel.insets = new Insets(0, 0, 5, 5);
               gbc_lblNewLabel.gridx = 0;
               gbc_lblNewLabel.gridy = 0;
               bewegungPanel.add(lblNewLabel, gbc_lblNewLabel);
            }
            {
               vorwTxtField = new JTextField();
               vorwTxtField.setEditable(false);
               GridBagConstraints gbc_vorwTxtField = new GridBagConstraints();
               gbc_vorwTxtField.insets = new Insets(0, 0, 5, 0);
               gbc_vorwTxtField.gridx = 1;
               gbc_vorwTxtField.gridy = 0;
               bewegungPanel.add(vorwTxtField, gbc_vorwTxtField);
               vorwTxtField.setColumns(10);
            }
            {
               JLabel lblRckwarts = new JLabel("R\u00FCckwarts");
               GridBagConstraints gbc_lblRckwarts = new GridBagConstraints();
               gbc_lblRckwarts.anchor = GridBagConstraints.EAST;
               gbc_lblRckwarts.insets = new Insets(0, 0, 5, 5);
               gbc_lblRckwarts.gridx = 0;
               gbc_lblRckwarts.gridy = 1;
               bewegungPanel.add(lblRckwarts, gbc_lblRckwarts);
            }
            {
               rueckTxtField = new JTextField();
               rueckTxtField.setEditable(false);
               GridBagConstraints gbc_rueckTxtField = new GridBagConstraints();
               gbc_rueckTxtField.insets = new Insets(0, 0, 5, 0);
               gbc_rueckTxtField.gridx = 1;
               gbc_rueckTxtField.gridy = 1;
               bewegungPanel.add(rueckTxtField, gbc_rueckTxtField);
               rueckTxtField.setColumns(10);
            }
            {
               JLabel lblLinks_1 = new JLabel("Links");
               GridBagConstraints gbc_lblLinks_1 = new GridBagConstraints();
               gbc_lblLinks_1.anchor = GridBagConstraints.EAST;
               gbc_lblLinks_1.insets = new Insets(0, 0, 5, 5);
               gbc_lblLinks_1.gridx = 0;
               gbc_lblLinks_1.gridy = 2;
               bewegungPanel.add(lblLinks_1, gbc_lblLinks_1);
            }
            {
               linksTxtField = new JTextField();
               linksTxtField.setEditable(false);
               GridBagConstraints gbc_linksTxtField = new GridBagConstraints();
               gbc_linksTxtField.insets = new Insets(0, 0, 5, 0);
               gbc_linksTxtField.gridx = 1;
               gbc_linksTxtField.gridy = 2;
               bewegungPanel.add(linksTxtField, gbc_linksTxtField);
               linksTxtField.setColumns(10);
            }
            {
               JLabel lblRechts_1 = new JLabel("Rechts");
               GridBagConstraints gbc_lblRechts_1 = new GridBagConstraints();
               gbc_lblRechts_1.anchor = GridBagConstraints.EAST;
               gbc_lblRechts_1.insets = new Insets(0, 0, 5, 5);
               gbc_lblRechts_1.gridx = 0;
               gbc_lblRechts_1.gridy = 3;
               bewegungPanel.add(lblRechts_1, gbc_lblRechts_1);
            }
            {
               rechtsTxtField = new JTextField();
               rechtsTxtField.setEditable(false);
               GridBagConstraints gbc_rechtsTxtField = new GridBagConstraints();
               gbc_rechtsTxtField.insets = new Insets(0, 0, 5, 0);
               gbc_rechtsTxtField.gridx = 1;
               gbc_rechtsTxtField.gridy = 3;
               bewegungPanel.add(rechtsTxtField, gbc_rechtsTxtField);
               rechtsTxtField.setColumns(10);
            }
            {
               JLabel lblHoch = new JLabel("Auftauchen");
               GridBagConstraints gbc_lblHoch = new GridBagConstraints();
               gbc_lblHoch.anchor = GridBagConstraints.EAST;
               gbc_lblHoch.insets = new Insets(0, 0, 5, 5);
               gbc_lblHoch.gridx = 0;
               gbc_lblHoch.gridy = 4;
               bewegungPanel.add(lblHoch, gbc_lblHoch);
            }
            {
               aufTxtField = new JTextField();
               aufTxtField.setEditable(false);
               GridBagConstraints gbc_aufTxtField = new GridBagConstraints();
               gbc_aufTxtField.fill = GridBagConstraints.VERTICAL;
               gbc_aufTxtField.insets = new Insets(0, 0, 5, 0);
               gbc_aufTxtField.gridx = 1;
               gbc_aufTxtField.gridy = 4;
               bewegungPanel.add(aufTxtField, gbc_aufTxtField);
               aufTxtField.setColumns(10);
            }
            {
               JLabel lblRunter = new JLabel("Abtauchen");
               GridBagConstraints gbc_lblRunter = new GridBagConstraints();
               gbc_lblRunter.anchor = GridBagConstraints.EAST;
               gbc_lblRunter.insets = new Insets(0, 0, 0, 5);
               gbc_lblRunter.gridx = 0;
               gbc_lblRunter.gridy = 5;
               bewegungPanel.add(lblRunter, gbc_lblRunter);
            }
            {
               abTxtField = new JTextField();
               abTxtField.setEditable(false);
               GridBagConstraints gbc_abTxtField = new GridBagConstraints();
               gbc_abTxtField.gridx = 1;
               gbc_abTxtField.gridy = 5;
               bewegungPanel.add(abTxtField, gbc_abTxtField);
               abTxtField.setColumns(10);
            }
         }
         {
            JPanel neigungPanel = new JPanel();
            tabbedPane.addTab("Neigung", null, neigungPanel, null);
            neigungPanel.setBorder(null);
         }
         {
            JPanel KameraPanel = new JPanel();
            tabbedPane.addTab("Kamera", null, KameraPanel, null);
            KameraPanel.setBorder(null);
            GridBagLayout gbl_KameraPanel = new GridBagLayout();
            gbl_KameraPanel.columnWidths = new int[]{0, 0, 0};
            gbl_KameraPanel.rowHeights = new int[]{0, 0, 0, 0, 0, 0, 0};
            gbl_KameraPanel.columnWeights = new double[]{1.0, 1.0, Double.MIN_VALUE};
            gbl_KameraPanel.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
            KameraPanel.setLayout(gbl_KameraPanel);
            {
               JLabel lblNachOben = new JLabel("Nach oben");
               GridBagConstraints gbc_lblNachOben = new GridBagConstraints();
               gbc_lblNachOben.anchor = GridBagConstraints.EAST;
               gbc_lblNachOben.insets = new Insets(0, 0, 5, 5);
               gbc_lblNachOben.gridx = 0;
               gbc_lblNachOben.gridy = 1;
               KameraPanel.add(lblNachOben, gbc_lblNachOben);
            }
            {
               kamObenTxt = new JTextField();
               kamObenTxt.setEditable(false);
               GridBagConstraints gbc_kamObenTxt = new GridBagConstraints();
               gbc_kamObenTxt.insets = new Insets(0, 0, 5, 0);
               gbc_kamObenTxt.gridx = 1;
               gbc_kamObenTxt.gridy = 1;
               KameraPanel.add(kamObenTxt, gbc_kamObenTxt);
               kamObenTxt.setColumns(10);
            }
            {
               JLabel lblNewLabel_1 = new JLabel("Nach unten");
               GridBagConstraints gbc_lblNewLabel_1 = new GridBagConstraints();
               gbc_lblNewLabel_1.anchor = GridBagConstraints.EAST;
               gbc_lblNewLabel_1.insets = new Insets(0, 0, 5, 5);
               gbc_lblNewLabel_1.gridx = 0;
               gbc_lblNewLabel_1.gridy = 2;
               KameraPanel.add(lblNewLabel_1, gbc_lblNewLabel_1);
            }
            {
               kamUntenTxt = new JTextField();
               kamUntenTxt.setEditable(false);
               GridBagConstraints gbc_kamUntenTxt = new GridBagConstraints();
               gbc_kamUntenTxt.insets = new Insets(0, 0, 5, 0);
               gbc_kamUntenTxt.gridx = 1;
               gbc_kamUntenTxt.gridy = 2;
               KameraPanel.add(kamUntenTxt, gbc_kamUntenTxt);
               kamUntenTxt.setColumns(10);
            }
            {
               JLabel lblLinks = new JLabel("Links");
               GridBagConstraints gbc_lblLinks = new GridBagConstraints();
               gbc_lblLinks.anchor = GridBagConstraints.EAST;
               gbc_lblLinks.insets = new Insets(0, 0, 5, 5);
               gbc_lblLinks.gridx = 0;
               gbc_lblLinks.gridy = 3;
               KameraPanel.add(lblLinks, gbc_lblLinks);
            }
            {
               kamLinksTxt = new JTextField();
               kamLinksTxt.setEditable(false);
               GridBagConstraints gbc_kamLinksTxt = new GridBagConstraints();
               gbc_kamLinksTxt.insets = new Insets(0, 0, 5, 0);
               gbc_kamLinksTxt.gridx = 1;
               gbc_kamLinksTxt.gridy = 3;
               KameraPanel.add(kamLinksTxt, gbc_kamLinksTxt);
               kamLinksTxt.setColumns(10);
            }
            {
               JLabel lblRechts = new JLabel("Rechts");
               GridBagConstraints gbc_lblRechts = new GridBagConstraints();
               gbc_lblRechts.anchor = GridBagConstraints.EAST;
               gbc_lblRechts.insets = new Insets(0, 0, 5, 5);
               gbc_lblRechts.gridx = 0;
               gbc_lblRechts.gridy = 4;
               KameraPanel.add(lblRechts, gbc_lblRechts);
            }
            {
               kamRechtsTxt = new JTextField();
               kamRechtsTxt.setEditable(false);
               GridBagConstraints gbc_kamRechtsTxt = new GridBagConstraints();
               gbc_kamRechtsTxt.insets = new Insets(0, 0, 5, 0);
               gbc_kamRechtsTxt.gridx = 1;
               gbc_kamRechtsTxt.gridy = 4;
               KameraPanel.add(kamRechtsTxt, gbc_kamRechtsTxt);
               kamRechtsTxt.setColumns(10);
            }
            {
               JLabel lblFixieren = new JLabel("Fixieren");
               GridBagConstraints gbc_lblFixieren = new GridBagConstraints();
               gbc_lblFixieren.anchor = GridBagConstraints.EAST;
               gbc_lblFixieren.insets = new Insets(0, 0, 0, 5);
               gbc_lblFixieren.gridx = 0;
               gbc_lblFixieren.gridy = 5;
               KameraPanel.add(lblFixieren, gbc_lblFixieren);
            }
            {
               textField = new JTextField();
               textField.setEditable(false);
               GridBagConstraints gbc_textField = new GridBagConstraints();
               gbc_textField.gridx = 1;
               gbc_textField.gridy = 5;
               KameraPanel.add(textField, gbc_textField);
               textField.setColumns(10);
            }
         }
         {
            JPanel lichtPanel = new JPanel();
            FlowLayout flowLayout = (FlowLayout) lichtPanel.getLayout();
            tabbedPane.addTab("Licht", null, lichtPanel, null);
         }
      }
      
      
      
   }

   public JTextField getVorwTxtField() {
      return vorwTxtField;
   }
   public JTextField getRueckTxtField() {
      return rueckTxtField;
   }
   public JTextField getLinksTxtField() {
      return linksTxtField;
   }
   public JTextField getRechtsTxtField() {
      return rechtsTxtField;
   }
   public JTextField getAufTxtField() {
      return aufTxtField;
   }
   public JTextField getAbTxtField() {
      return abTxtField;
   }
   public JTextField getKamObenTxt() {
      return kamObenTxt;
   }
   public JTextField getKamUntenTxt() {
      return kamUntenTxt;
   }
   public JTextField getKamLinksTxt() {
      return kamLinksTxt;
   }
   public JTextField getKamRechtsTxt() {
      return kamRechtsTxt;
   }
   public JButton getOkButton() {
      return okButton;
   }
   public JButton getCancelButton() {
      return cancelButton;
   }
}
